home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / COUNTRY.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  541b  |  29 lines

  1. /*********
  2. *
  3. *  COUNTRY.C
  4. *
  5. *  by Ralph Davis
  6. *
  7. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  8. *
  9. *  Syntax:  COUNTRY()
  10. *  Return:  <expN> indicating number code on COUNTRY= line in CONFIG.SYS
  11. *********/
  12.  
  13. #include "trlib.h"
  14.  
  15. TRTYPE country()
  16. {
  17.    char *confparm = "COUNTRY";
  18.    int country_num;
  19.  
  20.    country_num = _tr_doscnf(confparm);
  21.  
  22.    if (country_num == (-1))   /* Not specified in CONFIG.SYS */
  23.       _retni( 0 );            /* Default country */
  24.    else
  25.       _retni( country_num );
  26.  
  27. }
  28.  
  29.